package _09_abstract_factory_pattern.v1_0.factory.impl;

import _09_abstract_factory_pattern.v1_0.factory.HumanFactory;
import _09_abstract_factory_pattern.v1_0.human.Human;
import _09_abstract_factory_pattern.v1_0.human.impl.MaleBlackHuman;
import _09_abstract_factory_pattern.v1_0.human.impl.MaleWhiteHuman;
import _09_abstract_factory_pattern.v1_0.human.impl.MaleYellowHuman;

/**
 * @Description: 生产男性的八卦炉
 * @Auther: 2019/6/12 13:51 by zhang.jy
 */
public class MaleFactory implements HumanFactory {
	//生产出黑人男性
	@Override
	public Human createBlackHuman() {
		return new MaleBlackHuman();
	}

	//生产出白人男性
	@Override
	public Human createWhiteHuman() {
		return new MaleWhiteHuman();
	}

	//生产出黄人男性
	@Override
	public Human createYellowHuman() {
		return new MaleYellowHuman();
	}
}